#import <UIKit/UIKit.h>

@interface UIImage (ArleneExtension)
/**
 *  根据图片名返回一张能够自由拉伸的图片 (从中间拉伸)
 */
+ (UIImage *)arlene_resizableImage:(NSString *)imgName;
+ (UIImage *)arlene_resizableImage:(NSString *)imgName capInsets:(UIEdgeInsets)capInsets;


/// 返回一张未被渲染的图片
+ (UIImage *)arlene_imageAlwaysShowOriginalImageWithImageName:(NSString *)imageName;
/// 获取视频某个时间的帧图片
+ (UIImage *)arlene_thumbnailImageForVideo:(NSURL *)videoURL atTime:(NSTimeInterval)time;

/// /// 获取屏幕截图
///
/// @return 屏幕截图图像
+ (UIImage *)arlene_screenShot;
/// 根据颜色返回image
+ (UIImage*)arlene_imageWithColor:(UIColor*)color size:(CGSize)size;
- (NSData *)compressWithMaxLength:(NSUInteger)maxLength;

//重新调整图片大小
- (UIImage *)resizeImage:(CGSize)size;
@end
